/**
 * 
 */
package com.maywide.jdp.system.vo;

import java.io.Serializable;

/**
 * 字典树对象类
 *
 * @author luoyang
 * @version 1.0
 * @since JDK1.6
 */
public class DirectoryTree implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -5702431826727906427L;

	/**
	 * ID
	 */
	private String id = null;

	/**
	 * 编码
	 */
	private String code = null;

	/**
	 * 名称
	 */
	private String name = null;

	/**
	 * 描述
	 */
	private String description = null;

	/**
	 * 可用
	 */
	private boolean active = true;

	/**
	 * 显示文本
	 */
	private String text = null;
	
	/**
	 * 是否为叶子
	 */
	private boolean leaf = true;

	/**
	 * 排列顺序
	 */
	private int tabIndex = 0;

	/**
	 * 参数值
	 */
	private String data = null;

	/**
	 * @return the id
	 */
	public String getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(String id) {
		this.id = id;
	}

	/**
	 * @return the code
	 */
	public String getCode() {
		return code;
	}

	/**
	 * @param code the code to set
	 */
	public void setCode(String code) {
		this.code = code;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the description
	 */
	public String getDescription() {
		return description;
	}

	/**
	 * @param description the description to set
	 */
	public void setDescription(String description) {
		this.description = description;
	}

	/**
	 * @return the active
	 */
	public boolean isActive() {
		return active;
	}

	/**
	 * @param active the active to set
	 */
	public void setActive(boolean active) {
		this.active = active;
	}

	/**
	 * @param text the text to set
	 */
	public void setText(String text) {
		this.text = text;
	}

	/**
	 * @return the text
	 */
	public String getText() {
		return text;
	}

	/**
	 * @param leaf the leaf to set
	 */
	public void setLeaf(boolean leaf) {
		this.leaf = leaf;
	}

	/**
	 * @return the leaf
	 */
	public boolean isLeaf() {
		return leaf;
	}

	/**
	 * @return the current value of the tabIndex property
	 */
	public int getTabIndex() {
		return tabIndex;
	}

	/**
	 * Sets the value of the tabIndex property.
	 * 
	 * @param aTabIndex
	 *            the new value of the tabIndex property
	 */
	public void setTabIndex(int aTabIndex) {
		tabIndex = aTabIndex;
	}

	/**
	 * @return the current value of the data property
	 */
	public String getData() {
		return data;
	}

	/**
	 * Sets the value of the data property.
	 * 
	 * @param aData
	 *            the new value of the data property
	 */
	public void setData(String aData) {
		data = aData;
	}

}
